package com.anycl.design.structural.bridge;

public class HuaWeiMobilePhone extends MobilePhoneAbstraction {

    public HuaWeiMobilePhone(SoftImplementor impl) {
        super(impl);
    }

    public void run() {
        // 使用委托：调用HuaWeiMobilePhone的run时，实际调用的是SoftImplementor的rawRun()
        this.impl.rawRun();
    }

    public void gpuTurboRun() {
        System.out.println("GPU Turbo Running start");
        this.run();
        System.out.println("GPU Turbo Running end");
    }
}
